Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports C4F.DevKit.Speech

Namespace SpeechApplication
	Public Partial Class SpeechSettings
		Inherits Form

		#Region "Constructors"

		Public Sub New(ByVal manager As SapiManager)
			InitializeComponent()
			Me.speechSettings1.SapiManager = manager
		End Sub

		#End Region ' Constructors

		#Region "Methods"

		#Region "Event Handlers"

		Private Sub speechSettings1_SettingsApplied(ByVal sender As Object, ByVal e As EventArgs) Handles speechSettings1.SettingsApplied
			Me.CloseForm()
		End Sub

		Private Sub speechSettings1_SettingsCanceled(ByVal sender As Object, ByVal e As EventArgs) Handles speechSettings1.SettingsCanceled
			Me.CloseForm()
		End Sub

		Private Sub SpeechSettings_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown
			If e.KeyCode = Keys.Escape Then
				Me.CloseForm()
			End If
		End Sub

		#End Region ' Event Handlers

		#Region "Private"

		Private Sub CloseForm()
			Me.Close()
		End Sub

		#End Region ' Private


		#End Region ' Methods
	End Class
End Namespace
